MercadoPago\Woocommerce\Gateways\AbstractGateway A

Total Complexity 70
Dependencies 7
Dependents 19
Total lines 877
Lines of code 442
Logical lines of code 147
Comment lines 260
Methods 41
Properties 12

Methods 41

Method Rating Maintainability Complexity Lines of code
update_option()
S
55 5 20
processReturnFail()
S
52 4 24
process_payment()
S
54 3 21
addMissingCredentialsNoticeAsFormField()
S
54 3 21
loadMelidataStoreScripts()
S
56 3 20
getAmount()
S
61 3 12
getHomologValidateNoticeOrHidden()
S
55 2 21
getAmountAndCurrency()
S
58 2 17
canAdminLoadScriptsAndStyles()
S
73 3 5
payment_scripts()
S
69 3 8
processBlocksCheckoutData()
S
63 3 10
getFeeTitle()
S
61 2 13
registerCheckoutScripts()
S
53 1 26
getCommissionField()
S
59 1 15
getActionableValue()
S
68 2 7
getDiscountField()
S
59 1 15
canCheckoutLoadScriptsAndStyles()
S
75 2 4
loadResearchComponent()
S
60 1 15
handleWithRejectPayment()
S
68 2 7
saveOrderPaymentsId()
S
65 2 9
registerDiscountAndCommissionFeesOnCart()
S
75 2 5
generate_mp_actionable_input_html()
S
60 1 14
__construct()
S
60 1 13
getFeeText()
S
74 1 4
generate_mp_support_link_html()
S
65 1 10
get_settings_url()
S
80 1 3
getRejectedPaymentErrorMessage()
S
75 1 4
init_form_fields()
S
81 1 3
registerAdminScripts()
S
66 1 10
generate_mp_credits_checkout_example_html()
S
65 1 10
generate_mp_tooltip_selection_html()
S
65 1 10
generate_mp_preview_html()
S
65 1 10
isAvailable()
S
81 1 3
generate_mp_card_info_html()
S
65 1 10
payment_fields()
S
91 1 2
generate_mp_config_title_html()
S
65 1 10
generate_mp_checkbox_list_html()
S
66 1 9
generate_mp_toggle_switch_html()
S
64 1 10
validate_fields()
S
82 1 3
webhook()
S
70 1 6
getCheckoutName()
S
81 1 3